<form nz-form #validateForm="ngForm" (ngSubmit)="submitForm()" nzLayout="horizontal" autocomplete="off">
    <!-- 模态框头部 -->
    <div class="modal-header">
        <div class="modal-title">
            <i class="iconfont icon-medicine-box mr-sm"></i>
            <span>添加</span>
        </div>
    </div>
    <!-- 模态框内容 -->
    <fieldset>
        <!-- 提示信息 -->
        <!-- <nz-alert nzType="info" nzCloseable [nzShowIcon]="true" nzMessage="l('我想提示点什么内容给你说')"></nz-alert> -->
        <!-- CategoryId : CategoryId 的控件范围=Start= -->
        <nz-form-item nz-row>
            <nz-form-label nz-col [nzSm]="6" [nzXs]="24" nzRequired nzFor="categoryId">
                {{l('StockCategoryName')}}
            </nz-form-label>
            <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                <!--  控件位置 -->
                <nz-select name="categoryId" #categoryId="ngModel" [nzPlaceHolder]="l('StockCategoryNameInputDesc')"
                    required [(ngModel)]="entity.categoryId">
                    <!-- 请配置你的数据源 -->
                    <nz-option *ngFor="let option of categoryList" [nzValue]="option.value" [nzLabel]="option.text">
                    </nz-option>
                </nz-select>
                <!-- 校验 -->
                <nz-form-explain *ngIf="categoryId.control.dirty&&categoryId.control.errors">
                    <ng-container *ngIf="categoryId.control.hasError('required')">{{l('ThisFieldIsRequired')}}
                    </ng-container>
                </nz-form-explain>
            </nz-form-control>
        </nz-form-item>
    
    <nz-form-item nz-row >
            <div nz-col nzSpan="6" nzOffset="6">
                <a href="/assets/file/试题模板.xlsx" class="btn-downloadModel" download="">下载模板</a>
            </div>
            <div nz-col nzSpan="12" >
                <nz-form-item nzRequired>
                    <input type="file" (change)="daoru($event)"  multiple="false" style="position: absolute;opacity: 0;" id="uploadFile"/>
                    <div  class="btn-uploadFile">上传模板</div>
                </nz-form-item>
            </div>
    </nz-form-item>
    <div>
        <!-- <nz-table #basicTable [nzData]="inputdata">
            <thead>
              <tr>
                <th>题型</th>
                <th>题目</th>
                <th>分值</th>
                <th>正确答案</th>
                <th>选项</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let data of basicTable.data">
                <td *ngFor="let product of data;index as i;">
                    <div>{{product}}</div>
                </td>
              </tr>
            </tbody>
          </nz-table> -->
    </div>
    
    </fieldset>
    <!-- 模态框底部 -->
    <div class="modal-footer">
        <button nz-button [nzType]="'default'" type="button" (click)="close()" [disabled]="saving">
            <i class="iconfont icon-close-circle"></i> {{l("Cancel")}}
        </button>
        <button nz-button [nzType]="'primary'" type="submit" [disabled]="!validateForm.form.valid || saving || !isSubmit"
            [nzLoading]="saving">
            <i class="iconfont icon-save" *ngIf="!saving"></i> {{l("Save")}}
        </button>
    </div>
</form>
